import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
// import App from './App';
import Login from './pages/Login';
import Home from './pages/Home';
import { HashRouter,Route,Link} from "react-router-dom"

import reportWebVitals from './reportWebVitals';



// import {UserOutlined, LaptopOutlined, NotificationOutlined } from '@ant-design/icons';

// import { Menu } from 'antd';

ReactDOM.render(
  <React.StrictMode>
    <HashRouter>
      {/* <Route  path="/shou" component={App}  /> */}
      {/* <Menu.Item key="5" icon={<LaptopOutlined />}> */}
        <Route  path="/shou" component={Home}  />
      {/* </Menu.Item> */}

      <Route path="/tou" component={Home} />
      <Route path="/Admin" component={Home} />
      <Route path="/Invest" component={Home} />
      <Route path="/Notice" component={Home} />
      <Route path="/cash" component={Home} />
      <Route path="/User" component={Home} />
      <Route path="/Item" component={Home} />
      
      <Link to="/"><div className = 'indexbox'>退出</div></Link>
      <Route  path="/" exact={true}  component={Login}  />
    </HashRouter>
    {/* <App /> */}
  </React.StrictMode>,
  document.getElementById('root')
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
